<?php
/**
 * Zend_Jabber presence subscribe request object
 * 
 * @package stanza.presence
 */
class Zend_Jabber_Stanza_Request_Presence_Subscribe extends Zend_Jabber_Stanza_Request_Presence_Abstract {
    /**
     * Create presence subscribe object
     * 
     * @param Zend_Jabber_User $user Zend_Jabber user
     */
    public function __construct(Zend_Jabber_User $user) {
        parent::__construct();
        
	    $presence = $this->dom->createElement('presence');
	    $presence->setAttribute('type', $this->getType());
	    $presence->setAttribute('to', $user->getJid(false));
	    
	    $this->dom->appendChild($presence);
    }
}
?>